{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\docs\psrm15_regreps\regreps_log_9-28-15.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}28 Sep 2015, 21:16:30

{com}. do "C:\Users\DL\AppData\Local\Temp\STD0k000000.tmp"
{txt}
{com}. **Stata 13; uses spost13 for PP, plots.
. 
. **regression in Table 4, PP plot in Fig 2, and "Second Difference" in fn 25.
. 
. local path="C:\docs\psrm15_regreps"
{txt}
{com}. use "`path'\main.dta",clear
{txt}
{com}. 
. 
. 
. *----------------------------------------Table 4--------------------------------
. 
. logit __1binary c.jws_grade_zmean c.mqpetcomp bin_conflict bin_uncon bin_intrev ///
> bin_civlib uspet lctamici lodiss if jid !="blkm", cluster(jid) nolog
{res}
{txt}Logistic regression{col 51}Number of obs{col 67}= {res}      2843
{txt}{col 51}Wald chi2({res}9{txt}){col 67}= {res}  15874.19
{txt}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res} -1650.433{txt}{col 51}Pseudo R2{col 67}= {res}    0.0760

{txt}{ralign 81:(Std. Err. adjusted for {res:11} clusters in jid)}
{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29}    Robust
{col 1}      __1binary{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
jws_grade_zmean {c |}{col 17}{res}{space 2} .1249794{col 29}{space 2} .0376993{col 40}{space 1}    3.32{col 49}{space 3}0.001{col 57}{space 4} .0510901{col 70}{space 3} .1988686
{txt}{space 6}mqpetcomp {c |}{col 17}{res}{space 2} .2926269{col 29}{space 2}  .038122{col 40}{space 1}    7.68{col 49}{space 3}0.000{col 57}{space 4} .2179091{col 70}{space 3} .3673447
{txt}{space 3}bin_conflict {c |}{col 17}{res}{space 2} .1018747{col 29}{space 2} .1257489{col 40}{space 1}    0.81{col 49}{space 3}0.418{col 57}{space 4}-.1445887{col 70}{space 3}  .348338
{txt}{space 6}bin_uncon {c |}{col 17}{res}{space 2}  .713325{col 29}{space 2}  .285429{col 40}{space 1}    2.50{col 49}{space 3}0.012{col 57}{space 4} .1538945{col 70}{space 3} 1.272756
{txt}{space 5}bin_intrev {c |}{col 17}{res}{space 2}-.0744004{col 29}{space 2} .1297772{col 40}{space 1}   -0.57{col 49}{space 3}0.566{col 57}{space 4} -.328759{col 70}{space 3} .1799582
{txt}{space 5}bin_civlib {c |}{col 17}{res}{space 2}-.2395114{col 29}{space 2} .0693061{col 40}{space 1}   -3.46{col 49}{space 3}0.001{col 57}{space 4}-.3753488{col 70}{space 3} -.103674
{txt}{space 10}uspet {c |}{col 17}{res}{space 2} .3144623{col 29}{space 2} .1463892{col 40}{space 1}    2.15{col 49}{space 3}0.032{col 57}{space 4} .0275448{col 70}{space 3} .6013798
{txt}{space 7}lctamici {c |}{col 17}{res}{space 2} .2334285{col 29}{space 2} .1246781{col 40}{space 1}    1.87{col 49}{space 3}0.061{col 57}{space 4}-.0109361{col 70}{space 3} .4777932
{txt}{space 6}lodissent {c |}{col 17}{res}{space 2}-.2325179{col 29}{space 2} .0912966{col 40}{space 1}   -2.55{col 49}{space 3}0.011{col 57}{space 4} -.411456{col 70}{space 3}-.0535798
{txt}{space 10}_cons {c |}{col 17}{res}{space 2} .8919594{col 29}{space 2}  .152245{col 40}{space 1}    5.86{col 49}{space 3}0.000{col 57}{space 4} .5935647{col 70}{space 3} 1.190354
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. *----------------------Figure 2 plot (and associated regressions)---------------
. 
. *basic ivs
. local mbaseivs c.jws_grade_zmean c.jws_grade_zmean#c.jws_complexity ///
> c.jws_grade_zmean#c.mqpetcomp c.jws_complexity c.mqpetcomp
{txt}
{com}. 
. 
. *saturated ivs
. local msativs jws_us_appellant jws_us_appellee jws_sg_argue_applt ///
> jws_sg_argue_applee jws_dcprac_notus_applt jws_dcprac_notus_appellee ///
> jws_lawprof_applt jws_lawprof_applee jws_clerk_applt jws_clerk_applee ///
> jws_elite_law_applt jws_elite_law_applee c.jws_prev_exp_dif_log 
{txt}
{com}. 
. *fix some covariates for pp:
. local mvals  jws_us_appellant=0 jws_us_appellee=0 jws_sg_argue_applt=0 ///
> jws_sg_argue_applee=0 jws_lawprof_applt=0 jws_lawprof_applee=0 ///
> jws_clerk_applt=0 jws_clerk_applee=0 jws_elite_law_applt=0 jws_elite_law_applee=0 ///
> c.jws_prev_exp_dif_log=0 
{txt}
{com}. 
. 
. *full model, conference vote:
. logit __2bin `mbaseivs' `msativs' if jid !="blkm",cluster(jid) nolog
{res}
{txt}Logistic regression{col 51}Number of obs{col 67}= {res}      3095
{txt}{col 51}{help j_robustsingular##|_new:Wald chi2(9)}{col 67}=          {res}.
{txt}{col 51}Prob > chi2{col 67}=          {res}.
{txt}Log pseudolikelihood = {res} -1907.533{txt}{col 51}Pseudo R2{col 67}= {res}    0.1062

{txt}{ralign 100:(Std. Err. adjusted for {res:11} clusters in jid)}
{hline 35}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 36}{c |}{col 48}    Robust
{col 1}                         __2binary{col 36}{c |}      Coef.{col 48}   Std. Err.{col 60}      z{col 68}   P>|z|{col 76}     [95% Con{col 89}f. Interval]
{hline 35}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 19}jws_grade_zmean {c |}{col 36}{res}{space 2} .3231238{col 48}{space 2} .0838991{col 59}{space 1}    3.85{col 68}{space 3}0.000{col 76}{space 4} .1586845{col 89}{space 3} .4875631
{txt}{space 34} {c |}
c.jws_grade_zmean#c.jws_complexity {c |}{col 36}{res}{space 2}  .070259{col 48}{space 2} .1576798{col 59}{space 1}    0.45{col 68}{space 3}0.656{col 76}{space 4}-.2387877{col 89}{space 3} .3793057
{txt}{space 34} {c |}
{space 5}c.jws_grade_zmean#c.mqpetcomp {c |}{col 36}{res}{space 2} .0302665{col 48}{space 2} .0136772{col 59}{space 1}    2.21{col 68}{space 3}0.027{col 76}{space 4} .0034596{col 89}{space 3} .0570733
{txt}{space 34} {c |}
{space 20}jws_complexity {c |}{col 36}{res}{space 2} .0036859{col 48}{space 2} .0775571{col 59}{space 1}    0.05{col 68}{space 3}0.962{col 76}{space 4}-.1483232{col 89}{space 3}  .155695
{txt}{space 25}mqpetcomp {c |}{col 36}{res}{space 2} .3097155{col 48}{space 2} .0484146{col 59}{space 1}    6.40{col 68}{space 3}0.000{col 76}{space 4} .2148246{col 89}{space 3} .4046063
{txt}{space 18}jws_us_appellant {c |}{col 36}{res}{space 2} .4134247{col 48}{space 2} .1052608{col 59}{space 1}    3.93{col 68}{space 3}0.000{col 76}{space 4} .2071174{col 89}{space 3}  .619732
{txt}{space 19}jws_us_appellee {c |}{col 36}{res}{space 2}-.8387627{col 48}{space 2}  .195907{col 59}{space 1}   -4.28{col 68}{space 3}0.000{col 76}{space 4}-1.222733{col 89}{space 3} -.454792
{txt}{space 16}jws_sg_argue_applt {c |}{col 36}{res}{space 2} .2674544{col 48}{space 2}  .112115{col 59}{space 1}    2.39{col 68}{space 3}0.017{col 76}{space 4} .0477131{col 89}{space 3} .4871957
{txt}{space 15}jws_sg_argue_applee {c |}{col 36}{res}{space 2} .2670295{col 48}{space 2} .0726105{col 59}{space 1}    3.68{col 68}{space 3}0.000{col 76}{space 4} .1247155{col 89}{space 3} .4093435
{txt}{space 12}jws_dcprac_notus_applt {c |}{col 36}{res}{space 2} .2270078{col 48}{space 2} .1275678{col 59}{space 1}    1.78{col 68}{space 3}0.075{col 76}{space 4}-.0230206{col 89}{space 3} .4770361
{txt}{space 9}jws_dcprac_notus_appellee {c |}{col 36}{res}{space 2}-.0480368{col 48}{space 2} .1771362{col 59}{space 1}   -0.27{col 68}{space 3}0.786{col 76}{space 4}-.3952175{col 89}{space 3} .2991439
{txt}{space 17}jws_lawprof_applt {c |}{col 36}{res}{space 2}-.3846345{col 48}{space 2} .2359126{col 59}{space 1}   -1.63{col 68}{space 3}0.103{col 76}{space 4}-.8470147{col 89}{space 3} .0777456
{txt}{space 16}jws_lawprof_applee {c |}{col 36}{res}{space 2}-.9189476{col 48}{space 2} .4167052{col 59}{space 1}   -2.21{col 68}{space 3}0.027{col 76}{space 4}-1.735675{col 89}{space 3}-.1022204
{txt}{space 19}jws_clerk_applt {c |}{col 36}{res}{space 2} .3822521{col 48}{space 2} .1279111{col 59}{space 1}    2.99{col 68}{space 3}0.003{col 76}{space 4} .1315509{col 89}{space 3} .6329533
{txt}{space 18}jws_clerk_applee {c |}{col 36}{res}{space 2} -.306268{col 48}{space 2} .2775545{col 59}{space 1}   -1.10{col 68}{space 3}0.270{col 76}{space 4}-.8502648{col 89}{space 3} .2377287
{txt}{space 15}jws_elite_law_applt {c |}{col 36}{res}{space 2}-.1345434{col 48}{space 2} .1024543{col 59}{space 1}   -1.31{col 68}{space 3}0.189{col 76}{space 4}-.3353501{col 89}{space 3} .0662633
{txt}{space 14}jws_elite_law_applee {c |}{col 36}{res}{space 2}-.0004462{col 48}{space 2} .1156391{col 59}{space 1}   -0.00{col 68}{space 3}0.997{col 76}{space 4}-.2270946{col 89}{space 3} .2262022
{txt}{space 14}jws_prev_exp_dif_log {c |}{col 36}{res}{space 2}  -.04533{col 48}{space 2}   .02601{col 59}{space 1}   -1.74{col 68}{space 3}0.081{col 76}{space 4}-.0963086{col 89}{space 3} .0056486
{txt}{space 29}_cons {c |}{col 36}{res}{space 2} .2537193{col 48}{space 2} .0730452{col 59}{space 1}    3.47{col 68}{space 3}0.001{col 76}{space 4} .1105534{col 89}{space 3} .3968851
{txt}{hline 35}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. mgen, at(c.jws_grade_zmean=(-4.5(1)4.5) jws_complexity=-.02 mqpetcomp=-.017 ///
> jws_dcprac_notus_applt=1 jws_dcprac_notus_appellee=1 `mvals') level(95) noatlegend ///
> stub(cv)
{res}
Predictions from: margins, at(c.jws_grade_zmean=(-4.5(1)4.5) jws_complexity=-.02 mqpetcomp=-.017 jws_dcprac_notus_applt=1 jws_dcprac_notus_appellee=1 jws_us_appellant=0 jws_us_appellee=0 jws_sg_argue_applt=0 jws_sg_argue_applee=0 jws_lawprof_applt=0 jws_lawprof_applee=0 jws_clerk_applt=0 jws_clerk_applee=0 jws_elite_law_applt=0 jws_elite_law_applee=0 c.jws_prev_exp_dif_log=0) level(95) noatlegend predict(pr)

{txt}Variable      Obs Unique      Mean       Min       Max  Label
{txt}{hline 135}
{txt}cvpr1       {res}   10     10  .5879294  .2654041  .8667784  {txt}pr(y=1) from margins
{txt}cvll1       {res}   10     10  .4869487  .1686892  .7439972  {txt}95% lower limit
{txt}cvul1       {res}   10     10  .6889101  .3621189  .9895597  {txt}95% upper limit
{txt}cvjws_grad~n{res}   10     10         0      -4.5       4.5  {txt}dependent variable
{txt}{hline 135}
{res}
{txt}{p 0 0 2}Specified values of covariates{p_end}

{space 0}{space 0}{ralign 9:jws_com~y}{space 1}{space 1}{ralign 9:mqpetcomp}{space 1}{space 1}{ralign 9:jws_us_~t}{space 1}{space 1}{ralign 9:jws_us_~e}{space 1}{space 1}{ralign 9:jws_sg_~t}{space 1}{space 1}{ralign 9:jws_sg_~e}{space 1}{space 1}{ralign 9:jws_dcp~t}{space 1}{space 1}{ralign 9:jws_dcp~e}{space 1}{space 1}{ralign 9:jws_law~t}{space 1}{space 1}{ralign 9:jws_law~e}{space 1}{space 1}{ralign 9:jws_cle~t}{space 1}{space 1}{ralign 9:jws_cle~e}{space 1}
{space 0}{hline 10}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}
{space 0}{space 0}{ralign 9:{res:{sf:     -.02}}}{space 1}{space 1}{ralign 9:{res:{sf:    -.017}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}

{space 0}{space 1}{ralign 9:jws_eli~t}{space 1}{space 1}{ralign 9:jws_eli~e}{space 1}{space 1}{ralign 9:jws_pre~g}{space 1}
{space 0}{hline 11}{hline 11}{hline 11}
{space 0}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}
{res}{txt}
{com}. 
.                 
. *full model, report vote:
. logit __bin `mbaseivs' `msativs' if jws_justice !="blkm",cluster(jws_justice) nolog
{res}
{txt}Logistic regression{col 51}Number of obs{col 67}= {res}      3553
{txt}{col 51}{help j_robustsingular##|_new:Wald chi2(14)}{col 67}=          {res}.
{txt}{col 51}Prob > chi2{col 67}=          {res}.
{txt}Log pseudolikelihood = {res}-2144.6039{txt}{col 51}Pseudo R2{col 67}= {res}    0.1192

{txt}{ralign 100:(Std. Err. adjusted for {res:16} clusters in jws_justice)}
{hline 35}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 36}{c |}{col 48}    Robust
{col 1}                          __binary{col 36}{c |}      Coef.{col 48}   Std. Err.{col 60}      z{col 68}   P>|z|{col 76}     [95% Con{col 89}f. Interval]
{hline 35}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 19}jws_grade_zmean {c |}{col 36}{res}{space 2} .3394391{col 48}{space 2} .0563945{col 59}{space 1}    6.02{col 68}{space 3}0.000{col 76}{space 4} .2289079{col 89}{space 3} .4499704
{txt}{space 34} {c |}
c.jws_grade_zmean#c.jws_complexity {c |}{col 36}{res}{space 2}-.0411227{col 48}{space 2} .1209549{col 59}{space 1}   -0.34{col 68}{space 3}0.734{col 76}{space 4}-.2781899{col 89}{space 3} .1959445
{txt}{space 34} {c |}
{space 5}c.jws_grade_zmean#c.mqpetcomp {c |}{col 36}{res}{space 2} .0365009{col 48}{space 2} .0121154{col 59}{space 1}    3.01{col 68}{space 3}0.003{col 76}{space 4} .0127553{col 89}{space 3} .0602466
{txt}{space 34} {c |}
{space 20}jws_complexity {c |}{col 36}{res}{space 2} .0353629{col 48}{space 2} .0623105{col 59}{space 1}    0.57{col 68}{space 3}0.570{col 76}{space 4}-.0867634{col 89}{space 3} .1574891
{txt}{space 25}mqpetcomp {c |}{col 36}{res}{space 2} .3541486{col 48}{space 2} .0528612{col 59}{space 1}    6.70{col 68}{space 3}0.000{col 76}{space 4} .2505424{col 89}{space 3} .4577547
{txt}{space 18}jws_us_appellant {c |}{col 36}{res}{space 2} .4112559{col 48}{space 2} .0920755{col 59}{space 1}    4.47{col 68}{space 3}0.000{col 76}{space 4} .2307913{col 89}{space 3} .5917205
{txt}{space 19}jws_us_appellee {c |}{col 36}{res}{space 2}-.8955338{col 48}{space 2} .0829436{col 59}{space 1}  -10.80{col 68}{space 3}0.000{col 76}{space 4}  -1.0581{col 89}{space 3}-.7329674
{txt}{space 16}jws_sg_argue_applt {c |}{col 36}{res}{space 2} .1966635{col 48}{space 2} .0965198{col 59}{space 1}    2.04{col 68}{space 3}0.042{col 76}{space 4} .0074882{col 89}{space 3} .3858389
{txt}{space 15}jws_sg_argue_applee {c |}{col 36}{res}{space 2}-.0701878{col 48}{space 2} .1537477{col 59}{space 1}   -0.46{col 68}{space 3}0.648{col 76}{space 4}-.3715277{col 89}{space 3} .2311521
{txt}{space 12}jws_dcprac_notus_applt {c |}{col 36}{res}{space 2} .2089383{col 48}{space 2} .0891059{col 59}{space 1}    2.34{col 68}{space 3}0.019{col 76}{space 4} .0342939{col 89}{space 3} .3835827
{txt}{space 9}jws_dcprac_notus_appellee {c |}{col 36}{res}{space 2}  .075311{col 48}{space 2} .1440284{col 59}{space 1}    0.52{col 68}{space 3}0.601{col 76}{space 4}-.2069794{col 89}{space 3} .3576014
{txt}{space 17}jws_lawprof_applt {c |}{col 36}{res}{space 2}-.7074851{col 48}{space 2} .1794928{col 59}{space 1}   -3.94{col 68}{space 3}0.000{col 76}{space 4}-1.059284{col 89}{space 3}-.3556858
{txt}{space 16}jws_lawprof_applee {c |}{col 36}{res}{space 2}-1.085095{col 48}{space 2} .2041861{col 59}{space 1}   -5.31{col 68}{space 3}0.000{col 76}{space 4}-1.485293{col 89}{space 3}-.6848978
{txt}{space 19}jws_clerk_applt {c |}{col 36}{res}{space 2}-.1163123{col 48}{space 2} .1022877{col 59}{space 1}   -1.14{col 68}{space 3}0.255{col 76}{space 4}-.3167925{col 89}{space 3}  .084168
{txt}{space 18}jws_clerk_applee {c |}{col 36}{res}{space 2} .1958541{col 48}{space 2} .2380086{col 59}{space 1}    0.82{col 68}{space 3}0.411{col 76}{space 4}-.2706342{col 89}{space 3} .6623424
{txt}{space 15}jws_elite_law_applt {c |}{col 36}{res}{space 2}-.0684712{col 48}{space 2} .1091928{col 59}{space 1}   -0.63{col 68}{space 3}0.531{col 76}{space 4}-.2824851{col 89}{space 3} .1455427
{txt}{space 14}jws_elite_law_applee {c |}{col 36}{res}{space 2}-.0656684{col 48}{space 2} .0737608{col 59}{space 1}   -0.89{col 68}{space 3}0.373{col 76}{space 4}-.2102368{col 89}{space 3} .0789001
{txt}{space 14}jws_prev_exp_dif_log {c |}{col 36}{res}{space 2}-.1154976{col 48}{space 2} .0162448{col 59}{space 1}   -7.11{col 68}{space 3}0.000{col 76}{space 4}-.1473368{col 89}{space 3}-.0836583
{txt}{space 29}_cons {c |}{col 36}{res}{space 2} .4361422{col 48}{space 2} .0536899{col 59}{space 1}    8.12{col 68}{space 3}0.000{col 76}{space 4} .3309119{col 89}{space 3} .5413725
{txt}{hline 35}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. *gen tv2=e(sample)
. *margins, at(c.jws_grade_zmean=(-4.5(1)4.5) jws_complexity=-.02 mqpetcomp=-.017 ///
> *jws_dcprac_notus_applt=1 jws_dcprac_notus_appellee=1 `mvals') level(95) noatlegend 
. 
. mgen, at(c.jws_grade_zmean=(-4.5(1)4.5) jws_complexity=-.02 mqpetcomp=-.017 ///
> jws_dcprac_notus_applt=1 jws_dcprac_notus_appellee=1 `mvals') level(95) noatlegend ///
> stub(rv)
{res}
Predictions from: margins, at(c.jws_grade_zmean=(-4.5(1)4.5) jws_complexity=-.02 mqpetcomp=-.017 jws_dcprac_notus_applt=1 jws_dcprac_notus_appellee=1 jws_us_appellant=0 jws_us_appellee=0 jws_sg_argue_applt=0 jws_sg_argue_applee=0 jws_lawprof_applt=0 jws_lawprof_applee=0 jws_clerk_applt=0 jws_clerk_applee=0 jws_elite_law_applt=0 jws_elite_law_applee=0 c.jws_prev_exp_dif_log=0) level(95) noatlegend predict(pr)

{txt}Variable      Obs Unique      Mean       Min       Max  Label
{txt}{hline 135}
{txt}rvpr1       {res}   10     10  .6421105  .3068854  .9039624  {txt}pr(y=1) from margins
{txt}rvll1       {res}   10     10  .5678984  .2184516  .8416774  {txt}95% lower limit
{txt}rvul1       {res}   10     10  .7163226  .3953192  .9662475  {txt}95% upper limit
{txt}rvjws_grad~n{res}   10     10         0      -4.5       4.5  {txt}dependent variable
{txt}{hline 135}
{res}
{txt}{p 0 0 2}Specified values of covariates{p_end}

{space 0}{space 0}{ralign 9:jws_com~y}{space 1}{space 1}{ralign 9:mqpetcomp}{space 1}{space 1}{ralign 9:jws_us_~t}{space 1}{space 1}{ralign 9:jws_us_~e}{space 1}{space 1}{ralign 9:jws_sg_~t}{space 1}{space 1}{ralign 9:jws_sg_~e}{space 1}{space 1}{ralign 9:jws_dcp~t}{space 1}{space 1}{ralign 9:jws_dcp~e}{space 1}{space 1}{ralign 9:jws_law~t}{space 1}{space 1}{ralign 9:jws_law~e}{space 1}{space 1}{ralign 9:jws_cle~t}{space 1}{space 1}{ralign 9:jws_cle~e}{space 1}
{space 0}{hline 10}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}
{space 0}{space 0}{ralign 9:{res:{sf:     -.02}}}{space 1}{space 1}{ralign 9:{res:{sf:    -.017}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        1}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}

{space 0}{space 1}{ralign 9:jws_eli~t}{space 1}{space 1}{ralign 9:jws_eli~e}{space 1}{space 1}{ralign 9:jws_pre~g}{space 1}
{space 0}{hline 11}{hline 11}{hline 11}
{space 0}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}
{res}{txt}
{com}. 
. 
. **graph
. twoway (rarea rvul1 rvll1 rvjws_grade_zmean, lcolor(gs15) graphregion(color(white)) fcolor(gs15)) ///
> (rarea cvul1 cvll1 cvjws_grade_zmean,lcolor(gs14) fcolor(gs14)) ///
> (connected cvpr1 cvjws_grade_zmean, lcolor(black) msymbol(point) clpattern(dash) mcolor(black)) ///
> (connected rvpr1 rvjws_grade_zmean, lcolor(black) msymbol(point) clpattern(solid) mcolor(black))  , ///
> ytitle(P(Vote to Reverse)) xtitle(Appellant Advantage in Oral Argument Grade) ///
> legend(order(3 "Conference Merits Vote" 4  "Final, Report Vote")) ///
> title(Conference and Report Voting as a Function of Oral Argument Grade, size(medsmall))
{res}{txt}
{com}. 
. 
. graph save "`path'\fig2.gph", replace
{txt}(note: file C:\docs\psrm15_regreps\fig2.gph not found)
{res}{txt}(file C:\docs\psrm15_regreps\fig2.gph saved)

{com}. graph export "`path'\fig2.png", replace
{txt}(note: file C:\docs\psrm15_regreps\fig2.png not found)
(file C:\docs\psrm15_regreps\fig2.png written in PNG format)

{com}. 
. 
. 
. *----------------------------second difference------------------------------
. 
. **setup:
. *duplicate each observation in dataset
. expand 2, gen(voteisreport)
{txt}(190224 observations created)

{com}. *used as : voteisreport=1 if justice_vote is report vote...
. * and =0 if justice_vote is conference vote.  
. gen justice_vote=.
{txt}(380448 missing values generated)

{com}. replace justice_vote=__2binary if voteisreport==0
{txt}(24471 real changes made)

{com}. replace justice_vote=__binary if voteisreport==1
{txt}(66097 real changes made)

{com}. gen justice_id=""
{txt}(380448 missing values generated)

{com}. replace justice_id=jid if voteisreport==0
{txt}justice_id was {res}str1{txt} now {res}str4
{txt}(186974 real changes made)

{com}. replace justice_id=jws_justice if voteisreport==1
{txt}(10766 real changes made)

{com}. 
. 
. **generate interactions: "old" stata notation
. set seed 13115 //date
{txt}
{com}. *quietly{c -(}
. gen gXc=jws_grade_zmean*jws_complexity
{txt}(362554 missing values generated)

{com}. gen gXmq=jws_grade_zmean*mqpetcomp
{txt}(370798 missing values generated)

{com}. gen vrXg=voteisreport*jws_grade_zmean
{txt}(362364 missing values generated)

{com}. 
. *basic ivs
. local mbaseivs jws_grade_zmean gXc ///
> gXmq jws_complexity mqpetcomp
{txt}
{com}. 
. 
. *saturated ivs
. local msativs jws_us_appellant jws_us_appellee jws_sg_argue_applt ///
> jws_sg_argue_applee jws_dcprac_notus_applt jws_dcprac_notus_appellee ///
> jws_lawprof_applt jws_lawprof_applee jws_clerk_applt jws_clerk_applee ///
> jws_elite_law_applt jws_elite_law_applee jws_prev_exp_dif_log 
{txt}
{com}. 
. 
. foreach v of local mbaseivs{c -(}
{txt}  2{com}. gen vrX`v'=voteisreport*`v'
{txt}  3{com}. {c )-}
{txt}(362364 missing values generated)
(362554 missing values generated)
(370798 missing values generated)
(359144 missing values generated)
(368980 missing values generated)

{com}. foreach v of local msativs{c -(}
{txt}  2{com}. gen vrX`v'=voteisreport*`v'
{txt}  3{com}. {c )-}
{txt}(358916 missing values generated)
(358916 missing values generated)
(358916 missing values generated)
(358916 missing values generated)
(358916 missing values generated)
(358916 missing values generated)
(358916 missing values generated)
(358916 missing values generated)
(358916 missing values generated)
(358916 missing values generated)
(358916 missing values generated)
(358916 missing values generated)
(361984 missing values generated)

{com}. 
. 
. 
. 
. *the advantage of including the extended ivs is that since the logit model
. *used here (with vr interacted with all terms) avoids making undesirable
. *assumptions about w/er the effects of variables are constant across votes.
. 
. *extended IVs:
. local mextivs  vrXgXc vrXgXmq vrXjws_complexity vrXmqpetcomp ///
> vrXjws_us_appellant vrXjws_us_appellee vrXjws_sg_argue_applt ///
> vrXjws_sg_argue_applee vrXjws_dcprac_notus_applt vrXjws_dcprac_notus_appellee ///
> vrXjws_lawprof_applt vrXjws_lawprof_applee vrXjws_clerk_applt vrXjws_clerk_applee ///
> vrXjws_elite_law_applt vrXjws_elite_law_applee vrXjws_prev_exp_dif_log  
{txt}
{com}. *note  vrXjws_grade_zmean not needed b/c vrXg already exists
. 
. 
. 
. estsimp logit justice_vote voteisreport vrXg ///
> `mbaseivs' `msativs' `mextivs' if jws_justice !="blkm" 

{txt}Iteration 0:   log likelihood = {res}-4570.2705
{txt}Iteration 1:   log likelihood = {res}-4064.4456
{txt}Iteration 2:   log likelihood = {res}-4052.2022
{txt}Iteration 3:   log likelihood = {res}-4052.1369
{txt}Iteration 4:   log likelihood = {res}-4052.1369

{txt}Logistic regression                               Number of obs   = {res}      6648
                                                  {txt}LR chi2({res}37{txt})     = {res}   1036.27
                                                  {txt}Prob > chi2     = {res}    0.0000
{txt}Log likelihood = {res}-4052.1369                       {txt}Pseudo R2       = {res}    0.1134

{txt}{hline 13}{c TT}{hline 64}
justice_vote {c |}      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
{hline 13}{c +}{hline 64}
voteisreport {c |}  {res} .1824229   .0822528     2.22   0.027     .0212103    .3436355
        {txt}vrXg {c |}  {res} .0163153   .0564444     0.29   0.773    -.0943137    .1269443
{txt}jws_grade_~n {c |}  {res} .3231238   .0408174     7.92   0.000     .2431232    .4031245
         {txt}gXc {c |}  {res}  .070259   .1014189     0.69   0.488    -.1285183    .2690364
        {txt}gXmq {c |}  {res} .0302665   .0186236     1.63   0.104    -.0062352    .0667681
{txt}jws_comple~y {c |}  {res} .0036859    .108462     0.03   0.973    -.2088956    .2162675
   {txt}mqpetcomp {c |}  {res} .3097155   .0200057    15.48   0.000      .270505    .3489259
{txt}jws_us_app~t {c |}  {res} .4134247   .1221568     3.38   0.001     .1740016    .6528477
{txt}jws_us_app~e {c |}  {res}-.8387627   .1586115    -5.29   0.000    -1.149635     -.52789
{txt}jws_sg_arg~t {c |}  {res} .2674544   .1321982     2.02   0.043     .0083508     .526558
{txt}jws_sg_arg~e {c |}  {res} .2670295    .181085     1.47   0.140    -.0878906    .6219496
{txt}jws_dcprac~t {c |}  {res} .2270078   .1380543     1.64   0.100    -.0435738    .4975893
{txt}jws_dcprac~e {c |}  {res}-.0480368   .1435422    -0.33   0.738    -.3293744    .2333008
{txt}jws_lawpro~t {c |}  {res}-.3846345   .2974473    -1.29   0.196    -.9676205    .1983514
{txt}jws_lawpro~e {c |}  {res}-.9189476   .2960694    -3.10   0.002    -1.499233   -.3386623
{txt}jws_clerk_~t {c |}  {res} .3822521   .1691096     2.26   0.024     .0508033    .7137008
{txt}jws_clerk_~e {c |}  {res} -.306268   .2036586    -1.50   0.133    -.7054315    .0928954
{txt}jws_elite_~t {c |}  {res}-.1345434   .0902686    -1.49   0.136    -.3114667    .0423799
{txt}jws_elite_~e {c |}  {res}-.0004462   .0911017    -0.00   0.996    -.1790023    .1781099
{txt}jws_prev_e~g {c |}  {res}  -.04533   .0352129    -1.29   0.198     -.114346     .023686
      {txt}vrXgXc {c |}  {res}-.1113817   .1387148    -0.80   0.422    -.3832577    .1604943
     {txt}vrXgXmq {c |}  {res} .0062345   .0261875     0.24   0.812    -.0450922    .0575611
{txt}vrXjws_com~y {c |}  {res} .0316769   .1467259     0.22   0.829    -.2559005    .3192544
{txt}vrXmqpetcomp {c |}  {res} .0444331   .0280595     1.58   0.113    -.0105625    .0994287
{txt}vrXjws_us_~t {c |}  {res}-.0021687   .1675988    -0.01   0.990    -.3306563    .3263189
{txt}vrXjws_us_~e {c |}  {res}-.0567711   .2162133    -0.26   0.793    -.4805415    .3669993
{txt}vrXjws_sg_~t {c |}  {res}-.0707909   .1803151    -0.39   0.695    -.4242019    .2826202
{txt}vrXjws_sg_~e {c |}  {res}-.3372173    .244303    -1.38   0.167    -.8160423    .1416077
{txt}vrXjws_dcp~t {c |}  {res}-.0180695   .1883702    -0.10   0.924    -.3872683    .3511294
{txt}vrXjws_dcp~e {c |}  {res} .1233478   .1986909     0.62   0.535    -.2660793    .5127749
{txt}vrXjws_law~t {c |}  {res}-.3228506    .400012    -0.81   0.420     -1.10686    .4611586
{txt}vrXjws_law~e {c |}  {res}-.1661477   .4134153    -0.40   0.688    -.9764268    .6441314
{txt}vrXjws_cle~t {c |}  {res}-.4985643   .2262932    -2.20   0.028    -.9420909   -.0550378
{txt}vrXjws_cle~e {c |}  {res} .5021221    .281245     1.79   0.074     -.049108    1.053352
{txt}vrXjws_eli~t {c |}  {res} .0660722   .1238883     0.53   0.594    -.1767444    .3088888
{txt}vrXjws_eli~e {c |}  {res}-.0652222   .1253404    -0.52   0.603    -.3108848    .1804405
{txt}vrXjws_pre~g {c |}  {res}-.0701676   .0484327    -1.45   0.147     -.165094    .0247588
       {txt}_cons {c |}  {res} .2537193   .0593844     4.27   0.000      .137328    .3701105
{txt}{hline 13}{c BT}{hline 64}

{res}Simulating main parameters.  Please wait....
% of simulations completed: 2% 5% 7% 10% 13% 15% 18% 21% 23% 26% 28% 31% 34% 36% 39% 42% 44% 47% 50% 52% 55% 57% 60% 63% 65% 68% 71% 73% 76% 78% 81% 84% 86% 89% 92% 94% 97% 100% 

Number of simulations  : 1000
Names of new variables : b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 b16 b17 b18 b19 b20 b21 b22 b23 b24 b25 b26 b27 b28 b29 b30 b31 b32 b33 b34 b35 b36 b37 b38
{txt}
{com}. 
. setx jws_us_appellant 0 jws_us_appellee 0 jws_sg_argue_applt 0 ///
> jws_sg_argue_applee 0 jws_lawprof_applt 0 jws_lawprof_applee 0 ///
> jws_clerk_applt 0 jws_clerk_applee 0 jws_elite_law_applt 0 jws_elite_law_applee 0 ///
> jws_prev_exp_dif_log 0 jws_complexity -.02 mqpetcomp -.017 ///
> jws_dcprac_notus_applt 1 jws_dcprac_notus_appellee 1
{txt}
{com}. *{c )-}
. 
. 
. 
. //min grade, conf vote:
. setx vrXjws_us_appellant 0 vrXjws_us_appellee 0 vrXjws_sg_argue_applt 0 ///
> vrXjws_sg_argue_applee 0 vrXjws_lawprof_applt 0 vrXjws_lawprof_applee 0 ///
> vrXjws_clerk_applt 0 vrXjws_clerk_applee 0 vrXjws_elite_law_applt 0 vrXjws_elite_law_applee 0 ///
> vrXjws_prev_exp_dif_log 0 vrXjws_complexity 0 vrXmqpetcomp 0 ///
> vrXjws_dcprac_notus_applt 0 vrXjws_dcprac_notus_appellee 0
{txt}
{com}. 
. setx jws_grade_zmean -4.5 gXc .09 gXmq .0765 vrXg 0 vrXgXc 0 vrXgXmq 0
{txt}
{com}. 
. simqi, prval(1) genpr(pr00)

{txt}      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(justic~e=1) |  {res} .2648566     .0460599     .1834152    .3635127

Simqi generated the following new variable(s): pr00
{txt}
{com}. 
. //max grade, conf vote:
. setx jws_grade_zmean 4.5 gXc -.09 gXmq -.0765 vrXg 0 vrXgXc 0 vrXgXmq 0
{txt}
{com}. simqi, prval(1) genpr(pr10)

{txt}      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(justic~e=1) |  {res} .8632292     .0308346     .7931224    .9158705

Simqi generated the following new variable(s): pr10
{txt}
{com}. 
. //min grade, report vote:
. setx vrXjws_us_appellant 0 vrXjws_us_appellee 0 vrXjws_sg_argue_applt 0 ///
> vrXjws_sg_argue_applee 0 vrXjws_lawprof_applt 0 vrXjws_lawprof_applee 0 ///
> vrXjws_clerk_applt 0 vrXjws_clerk_applee 0 vrXjws_elite_law_applt 0 vrXjws_elite_law_applee 0 ///
> vrXjws_prev_exp_dif_log 0 vrXjws_complexity -.02 mqpetcomp -.017 ///
> vrXjws_dcprac_notus_applt 1 vrXjws_dcprac_notus_appellee 1
{txt}
{com}. 
. setx jws_grade_zmean -4.5 gXc .09 gXmq .0765 vrXg -4.5 vrXgXc .09 vrXgXmq .0765 
{txt}
{com}. 
. simqi, prval(1) genpr(pr01)

{txt}      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(justic~e=1) |  {res} .2706058     .0471482     .1873311    .3715527

Simqi generated the following new variable(s): pr01
{txt}
{com}. 
. 
. //max grade, report vote: 
. setx jws_grade_zmean 4.5 gXc -.09 gXmq -.0765 vrXg 4.5 vrXgXc -.09 vrXgXmq -.0765
{txt}
{com}. 
. simqi, prval(1) genpr(pr11)

{txt}      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(justic~e=1) |  {res} .8846712     .0241659     .8322445    .9253286

Simqi generated the following new variable(s): pr11
{txt}
{com}. 
. *(11-01) - (10-00)
. 
. gen t1=pr11-pr01
{txt}(379448 missing values generated)

{com}. gen t2=pr10-pr00
{txt}(379448 missing values generated)

{com}. gen seconddif=t1-t2
{txt}(379448 missing values generated)

{com}. 
. sumqi t1 t2 seconddif


{txt}  Variable |     Mean       Std. Dev.    [95% Conf. Interval]
-----------+--------------------------------------------------
        t1 |  {res}{col 15} .6140655{col 28} .0535395{col 41} .5006846{col 53} .7100471
        {txt}t2 |  {res}{col 15} .5983727{col 28} .0565639{col 41} .4819166{col 53} .7022577
  {txt}second~f |  {res}{col 15} .0156928{col 28}     .078{col 41} -.142179{col 53} .1629188
{txt}
{com}. 
. clear
{txt}
{com}. 
. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\docs\psrm15_regreps\regreps_log_9-28-15.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}28 Sep 2015, 21:24:53
{txt}{.-}
{smcl}
{txt}{sf}{ul off}